package xyz.zhouzhaodong.crm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 薪资表
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-21
 */
public class Payroll implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 员工id
     */
    private String staffId;

    /**
     * 底薪
     */
    private String baseSalary;

    /**
     * 成交人数
     */
    private Integer dealsNumber;

    /**
     * 提成
     */
    private String brokerage;

    /**
     * 服务费
     */
    private String serviceFee;

    /**
     * 奖金
     */
    private String bonuses;

    /**
     * 机票
     */
    private String airfare;

    /**
     * 其他
     */
    private String other;

    /**
     * 合计
     */
    private String totals;

    /**
     * 提交时间
     */
    private String submitDate;

    /**
     * 状态(审核中，批准，驳回)
     */
    private String type;

    /**
     * 罚金
     */
    private String fine;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否有效（0有效，1无效）
     */
    private Integer flag;

    /**
     * 创建人id
     */
    private String createUser;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新人
     */
    private String updateUser;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }
    public String getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(String baseSalary) {
        this.baseSalary = baseSalary;
    }
    public Integer getDealsNumber() {
        return dealsNumber;
    }

    public void setDealsNumber(Integer dealsNumber) {
        this.dealsNumber = dealsNumber;
    }
    public String getBrokerage() {
        return brokerage;
    }

    public void setBrokerage(String brokerage) {
        this.brokerage = brokerage;
    }
    public String getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(String serviceFee) {
        this.serviceFee = serviceFee;
    }
    public String getBonuses() {
        return bonuses;
    }

    public void setBonuses(String bonuses) {
        this.bonuses = bonuses;
    }
    public String getAirfare() {
        return airfare;
    }

    public void setAirfare(String airfare) {
        this.airfare = airfare;
    }
    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }
    public String getTotals() {
        return totals;
    }

    public void setTotals(String totals) {
        this.totals = totals;
    }
    public String getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(String submitDate) {
        this.submitDate = submitDate;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getFine() {
        return fine;
    }

    public void setFine(String fine) {
        this.fine = fine;
    }

    @Override
    public String toString() {
        return "Payroll{" +
                "id='" + id + '\'' +
                ", staffId='" + staffId + '\'' +
                ", baseSalary='" + baseSalary + '\'' +
                ", dealsNumber=" + dealsNumber +
                ", brokerage='" + brokerage + '\'' +
                ", serviceFee='" + serviceFee + '\'' +
                ", bonuses='" + bonuses + '\'' +
                ", airfare='" + airfare + '\'' +
                ", other='" + other + '\'' +
                ", totals='" + totals + '\'' +
                ", submitDate='" + submitDate + '\'' +
                ", type='" + type + '\'' +
                ", fine='" + fine + '\'' +
                ", remark='" + remark + '\'' +
                ", flag=" + flag +
                ", createUser='" + createUser + '\'' +
                ", createTime=" + createTime +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
